import request from '../utils/request'

// 操作日志 Operation Log Controller 相关API
export const operationLogApi = {
  // 分页查询操作日志列表
  getPage(params) {
    // 对应后端 Operation Log Controller: GET /operation-log/page
    // 参数：current(当前页，默认1)、size(每页条数，默认10)
    return request({
      url: '/operation-log/page',
      method: 'get',
      params: params || { current: 1, size: 10 }
    })
  },
}

export default operationLogApi